# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-saturn
pkgver=0_git20200123
pkgrel=0
_commit="8a65943bb7bbc3183eeb0d57c4ac3e663f1bcc11"
pkgdesc="standalone port of Mednafen Saturn to the libretro API"
url="https://github.com/libretro/beetle-saturn-libretro"
arch="all !mips !mips64" # fails to build on mips
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-saturn-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-saturn-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_saturn_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_saturn_libretro.so
}

sha512sums="3467d0bbaf1d687a924036de3992848759904db685282650d6de23d86f66a38128fbd31dcbbcf2f57e9ec4a6270a20c5663437838e434543e1f1e3792dea7681  libretro-beetle-saturn-8a65943bb7bbc3183eeb0d57c4ac3e663f1bcc11.tar.gz"
